package com.lhz.model.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @Author LiGezZ
 * @Date 2021/08/09 21:39:13
 * @Description: 定时任务日志
 */
@Schema(description = "定时任务日志响应参数")
@Data
public class JobLogVo implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 下列参数作为参考，可根据实际情况进行增加或者减少
     */
    @Schema(description = "ID")
    private Long id;

    @Schema(description = "任务ID")
    private Long jobId;

    @Schema(description = "任务执行器地址")
    private String executorAddress;

    @Schema(description = "任务执行器Bean对象.方法名称")
    private String executorHandler;

    @Schema(description = "任务执行参数")
    private String executorParam;

    @Schema(description = "执行状态：success、fail")
    private String handleState;

    @Schema(description = "执行信息")
    private String handleMsg;

    @Schema(description = "耗时")
    private Double handleTime;

    @Schema(description = "创建时间")
    private LocalDateTime createTime;

}
